package com.zzb.dao;

import com.zzb.model.ProductModel;
import com.zzb.model.ProductTypeModel;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ProductDao {
    public static List<ProductModel> productModelList = new ArrayList<>();
    public static List<ProductTypeModel> productTypeModelList = new ArrayList<>();

    //添加产品类
    static {
        productTypeModelList.add(ProductTypeModel.builder()
                .name("衣服鞋帽")
                .build());
        productTypeModelList.add(ProductTypeModel.builder()
                .name("帐篷睡袋")
                .build());
        productTypeModelList.add(ProductTypeModel.builder()
                .name("背包")
                .build());
        productTypeModelList.add(ProductTypeModel.builder()
                .name("炊具")
                .build());
        productTypeModelList.add(ProductTypeModel.builder()
                .name("灯具")
                .build());
        productTypeModelList.add(ProductTypeModel.builder()
                .name("水具")
                .build());
    }

    //添加产品信息
    static {
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
        productModelList.add(ProductModel.builder()
                .img("../img/mark_wsxavm6c(1)_h322.jpg")
                .marketPrice(new BigDecimal("150.00"))
                .currentPrice(new BigDecimal("145.00"))
                .name("休闲船")
                .build());
    }
}
